<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let num = ['2', '11', '12', '55']
        let result = num.filter(item => item % 2 == 0)
        console.log(result);
        //let operDate = selectDate[0].operatedon.substring(0, 10);
        let operDate = '2021-12-10'
        let NewoperDate = `${operDate.substring(2, 4)}${operDate.substring(
            5,
            7
        )}${operDate.substring(8, 10)}`;
        console.log(NewoperDate);
    </script>
</body>

</html>